Optimal. Leaf size=265 \[ \frac{\left (\sqrt{a} B+A \sqrt{c}\right ) \log \left (-\sqrt{2} \sqrt [4]{a} \sqrt [4]{c} \sqrt{x}+\sqrt{a}+\sqrt{c} x\right )}{2 \sqrt{2} \sqrt [4]{a} c^{5/4}}-\frac{\left (\sqrt{a} B+A \sqrt{c}\right ) \log \left (\sqrt{2} \sqrt [4]{a} \sqrt [4]{c} \sqrt{x}+\sqrt{a}+\sqrt{c} x\right )}{2 \sqrt{2} \sqrt [4]{a} c^{5/4}}+\frac{\left (\sqrt{a} B-A \sqrt{c}\right ) \tan ^{-1}\left (1-\frac{\sqrt{2} \sqrt [4]{c} \sqrt{x}}{\sqrt [4]{a}}\right )}{\sqrt{2} \sqrt [4]{a} c^{5/4}}-\frac{\left (\sqrt{a} B-A \sqrt{c}\right ) \tan ^{-1}\left (\frac{\sqrt{2} \sqrt [4]{c} \sqrt{x}}{\sqrt [4]{a}}+1\right )}{\sqrt{2} \sqrt [4]{a} c^{5/4}}+\frac{2 B \sqrt{x}}{c} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.234568, antiderivative size = 265, normalized size of antiderivative = 1., number of steps used = 11, number of rules used = 8, integrand size = 20, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.4, Rules used = {825, 827, 1168, 1162, 617, 204, 1165, 628} \[ \frac{\left (\sqrt{a} B+A \sqrt{c}\right ) \log \left (-\sqrt{2} \sqrt [4]{a} \sqrt [4]{c} \sqrt{x}+\sqrt{a}+\sqrt{c} x\right )}{2 \sqrt{2} \sqrt [4]{a} c^{5/4}}-\frac{\left (\sqrt{a} B+A \sqrt{c}\right ) \log \left (\sqrt{2} \sqrt [4]{a} \sqrt [4]{c} \sqrt{x}+\sqrt{a}+\sqrt{c} x\right )}{2 \sqrt{2} \sqrt [4]{a} c^{5/4}}+\frac{\left (\sqrt{a} B-A \sqrt{c}\right ) \tan ^{-1}\left (1-\frac{\sqrt{2} \sqrt [4]{c} \sqrt{x}}{\sqrt [4]{a}}\right )}{\sqrt{2} \sqrt [4]{a} c^{5/4}}-\frac{\left (\sqrt{a} B-A \sqrt{c}\right ) \tan ^{-1}\left (\frac{\sqrt{2} \sqrt [4]{c} \sqrt{x}}{\sqrt [4]{a}}+1\right )}{\sqrt{2} \sqrt [4]{a} c^{5/4}}+\frac{2 B \sqrt{x}}{c} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 825
Rule 827
Rule 1168
Rule 1162
Rule 617
Rule 204
Rule 1165
Rule 628
Rubi steps
\begin{align*} \int \frac{\sqrt{x} (A+B x)}{a+c x^2} \, dx &=\frac{2 B \sqrt{x}}{c}+\frac{\int \frac{-a B+A c x}{\sqrt{x} \left (a+c x^2\right )} \, dx}{c}\\ &=\frac{2 B \sqrt{x}}{c}+\frac{2 \operatorname{Subst}\left (\int \frac{-a B+A c x^2}{a+c x^4} \, dx,x,\sqrt{x}\right )}{c}\\ &=\frac{2 B \sqrt{x}}{c}+\frac{\left (A-\frac{\sqrt{a} B}{\sqrt{c}}\right ) \operatorname{Subst}\left (\int \frac{\sqrt{a} \sqrt{c}+c x^2}{a+c x^4} \, dx,x,\sqrt{x}\right )}{c}-\frac{\left (A+\frac{\sqrt{a} B}{\sqrt{c}}\right ) \operatorname{Subst}\left (\int \frac{\sqrt{a} \sqrt{c}-c x^2}{a+c x^4} \, dx,x,\sqrt{x}\right )}{c}\\ &=\frac{2 B \sqrt{x}}{c}+\frac{\left (\sqrt{a} B+A \sqrt{c}\right ) \operatorname{Subst}\left (\int \frac{\frac{\sqrt{2} \sqrt [4]{a}}{\sqrt [4]{c}}+2 x}{-\frac{\sqrt{a}}{\sqrt{c}}-\frac{\sqrt{2} \sqrt [4]{a} x}{\sqrt [4]{c}}-x^2} \, dx,x,\sqrt{x}\right )}{2 \sqrt{2} \sqrt [4]{a} c^{5/4}}+\frac{\left (\sqrt{a} B+A \sqrt{c}\right ) \operatorname{Subst}\left (\int \frac{\frac{\sqrt{2} \sqrt [4]{a}}{\sqrt [4]{c}}-2 x}{-\frac{\sqrt{a}}{\sqrt{c}}+\frac{\sqrt{2} \sqrt [4]{a} x}{\sqrt [4]{c}}-x^2} \, dx,x,\sqrt{x}\right )}{2 \sqrt{2} \sqrt [4]{a} c^{5/4}}+\frac{\left (A-\frac{\sqrt{a} B}{\sqrt{c}}\right ) \operatorname{Subst}\left (\int \frac{1}{\frac{\sqrt{a}}{\sqrt{c}}-\frac{\sqrt{2} \sqrt [4]{a} x}{\sqrt [4]{c}}+x^2} \, dx,x,\sqrt{x}\right )}{2 c}+\frac{\left (A-\frac{\sqrt{a} B}{\sqrt{c}}\right ) \operatorname{Subst}\left (\int \frac{1}{\frac{\sqrt{a}}{\sqrt{c}}+\frac{\sqrt{2} \sqrt [4]{a} x}{\sqrt [4]{c}}+x^2} \, dx,x,\sqrt{x}\right )}{2 c}\\ &=\frac{2 B \sqrt{x}}{c}+\frac{\left (\sqrt{a} B+A \sqrt{c}\right ) \log \left (\sqrt{a}-\sqrt{2} \sqrt [4]{a} \sqrt [4]{c} \sqrt{x}+\sqrt{c} x\right )}{2 \sqrt{2} \sqrt [4]{a} c^{5/4}}-\frac{\left (\sqrt{a} B+A \sqrt{c}\right ) \log \left (\sqrt{a}+\sqrt{2} \sqrt [4]{a} \sqrt [4]{c} \sqrt{x}+\sqrt{c} x\right )}{2 \sqrt{2} \sqrt [4]{a} c^{5/4}}+\frac{\left (A-\frac{\sqrt{a} B}{\sqrt{c}}\right ) \operatorname{Subst}\left (\int \frac{1}{-1-x^2} \, dx,x,1-\frac{\sqrt{2} \sqrt [4]{c} \sqrt{x}}{\sqrt [4]{a}}\right )}{\sqrt{2} \sqrt [4]{a} c^{3/4}}-\frac{\left (A-\frac{\sqrt{a} B}{\sqrt{c}}\right ) \operatorname{Subst}\left (\int \frac{1}{-1-x^2} \, dx,x,1+\frac{\sqrt{2} \sqrt [4]{c} \sqrt{x}}{\sqrt [4]{a}}\right )}{\sqrt{2} \sqrt [4]{a} c^{3/4}}\\ &=\frac{2 B \sqrt{x}}{c}-\frac{\left (A-\frac{\sqrt{a} B}{\sqrt{c}}\right ) \tan ^{-1}\left (1-\frac{\sqrt{2} \sqrt [4]{c} \sqrt{x}}{\sqrt [4]{a}}\right )}{\sqrt{2} \sqrt [4]{a} c^{3/4}}+\frac{\left (A-\frac{\sqrt{a} B}{\sqrt{c}}\right ) \tan ^{-1}\left (1+\frac{\sqrt{2} \sqrt [4]{c} \sqrt{x}}{\sqrt [4]{a}}\right )}{\sqrt{2} \sqrt [4]{a} c^{3/4}}+\frac{\left (\sqrt{a} B+A \sqrt{c}\right ) \log \left (\sqrt{a}-\sqrt{2} \sqrt [4]{a} \sqrt [4]{c} \sqrt{x}+\sqrt{c} x\right )}{2 \sqrt{2} \sqrt [4]{a} c^{5/4}}-\frac{\left (\sqrt{a} B+A \sqrt{c}\right ) \log \left (\sqrt{a}+\sqrt{2} \sqrt [4]{a} \sqrt [4]{c} \sqrt{x}+\sqrt{c} x\right )}{2 \sqrt{2} \sqrt [4]{a} c^{5/4}}\\ \end{align*}
Mathematica [A] time = 0.0664204, size = 266, normalized size = 1. \[ \frac{\sqrt{2} a^{5/4} B \log \left (-\sqrt{2} \sqrt [4]{a} \sqrt [4]{c} \sqrt{x}+\sqrt{a}+\sqrt{c} x\right )-\sqrt{2} a^{5/4} B \log \left (\sqrt{2} \sqrt [4]{a} \sqrt [4]{c} \sqrt{x}+\sqrt{a}+\sqrt{c} x\right )+2 \sqrt{2} a^{5/4} B \tan ^{-1}\left (1-\frac{\sqrt{2} \sqrt [4]{c} \sqrt{x}}{\sqrt [4]{a}}\right )-2 \sqrt{2} a^{5/4} B \tan ^{-1}\left (\frac{\sqrt{2} \sqrt [4]{c} \sqrt{x}}{\sqrt [4]{a}}+1\right )-4 (-a)^{3/4} A \sqrt{c} \tan ^{-1}\left (\frac{\sqrt [4]{c} \sqrt{x}}{\sqrt [4]{-a}}\right )+4 (-a)^{3/4} A \sqrt{c} \tanh ^{-1}\left (\frac{\sqrt [4]{c} \sqrt{x}}{\sqrt [4]{-a}}\right )+8 a B \sqrt [4]{c} \sqrt{x}}{4 a c^{5/4}} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.006, size = 277, normalized size = 1.1 \begin{align*} 2\,{\frac{B\sqrt{x}}{c}}-{\frac{B\sqrt{2}}{2\,c}\sqrt [4]{{\frac{a}{c}}}\arctan \left ({\sqrt{2}\sqrt{x}{\frac{1}{\sqrt [4]{{\frac{a}{c}}}}}}+1 \right ) }-{\frac{B\sqrt{2}}{2\,c}\sqrt [4]{{\frac{a}{c}}}\arctan \left ({\sqrt{2}\sqrt{x}{\frac{1}{\sqrt [4]{{\frac{a}{c}}}}}}-1 \right ) }-{\frac{B\sqrt{2}}{4\,c}\sqrt [4]{{\frac{a}{c}}}\ln \left ({ \left ( x+\sqrt [4]{{\frac{a}{c}}}\sqrt{x}\sqrt{2}+\sqrt{{\frac{a}{c}}} \right ) \left ( x-\sqrt [4]{{\frac{a}{c}}}\sqrt{x}\sqrt{2}+\sqrt{{\frac{a}{c}}} \right ) ^{-1}} \right ) }+{\frac{A\sqrt{2}}{4\,c}\ln \left ({ \left ( x-\sqrt [4]{{\frac{a}{c}}}\sqrt{x}\sqrt{2}+\sqrt{{\frac{a}{c}}} \right ) \left ( x+\sqrt [4]{{\frac{a}{c}}}\sqrt{x}\sqrt{2}+\sqrt{{\frac{a}{c}}} \right ) ^{-1}} \right ){\frac{1}{\sqrt [4]{{\frac{a}{c}}}}}}+{\frac{A\sqrt{2}}{2\,c}\arctan \left ({\sqrt{2}\sqrt{x}{\frac{1}{\sqrt [4]{{\frac{a}{c}}}}}}+1 \right ){\frac{1}{\sqrt [4]{{\frac{a}{c}}}}}}+{\frac{A\sqrt{2}}{2\,c}\arctan \left ({\sqrt{2}\sqrt{x}{\frac{1}{\sqrt [4]{{\frac{a}{c}}}}}}-1 \right ){\frac{1}{\sqrt [4]{{\frac{a}{c}}}}}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F(-2)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Exception raised: ValueError} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] time = 1.53447, size = 1530, normalized size = 5.77 \begin{align*} \frac{c \sqrt{\frac{c^{2} \sqrt{-\frac{B^{4} a^{2} - 2 \, A^{2} B^{2} a c + A^{4} c^{2}}{a c^{5}}} + 2 \, A B}{c^{2}}} \log \left (-{\left (B^{4} a^{2} - A^{4} c^{2}\right )} \sqrt{x} +{\left (A a c^{4} \sqrt{-\frac{B^{4} a^{2} - 2 \, A^{2} B^{2} a c + A^{4} c^{2}}{a c^{5}}} + B^{3} a^{2} c - A^{2} B a c^{2}\right )} \sqrt{\frac{c^{2} \sqrt{-\frac{B^{4} a^{2} - 2 \, A^{2} B^{2} a c + A^{4} c^{2}}{a c^{5}}} + 2 \, A B}{c^{2}}}\right ) - c \sqrt{\frac{c^{2} \sqrt{-\frac{B^{4} a^{2} - 2 \, A^{2} B^{2} a c + A^{4} c^{2}}{a c^{5}}} + 2 \, A B}{c^{2}}} \log \left (-{\left (B^{4} a^{2} - A^{4} c^{2}\right )} \sqrt{x} -{\left (A a c^{4} \sqrt{-\frac{B^{4} a^{2} - 2 \, A^{2} B^{2} a c + A^{4} c^{2}}{a c^{5}}} + B^{3} a^{2} c - A^{2} B a c^{2}\right )} \sqrt{\frac{c^{2} \sqrt{-\frac{B^{4} a^{2} - 2 \, A^{2} B^{2} a c + A^{4} c^{2}}{a c^{5}}} + 2 \, A B}{c^{2}}}\right ) - c \sqrt{-\frac{c^{2} \sqrt{-\frac{B^{4} a^{2} - 2 \, A^{2} B^{2} a c + A^{4} c^{2}}{a c^{5}}} - 2 \, A B}{c^{2}}} \log \left (-{\left (B^{4} a^{2} - A^{4} c^{2}\right )} \sqrt{x} +{\left (A a c^{4} \sqrt{-\frac{B^{4} a^{2} - 2 \, A^{2} B^{2} a c + A^{4} c^{2}}{a c^{5}}} - B^{3} a^{2} c + A^{2} B a c^{2}\right )} \sqrt{-\frac{c^{2} \sqrt{-\frac{B^{4} a^{2} - 2 \, A^{2} B^{2} a c + A^{4} c^{2}}{a c^{5}}} - 2 \, A B}{c^{2}}}\right ) + c \sqrt{-\frac{c^{2} \sqrt{-\frac{B^{4} a^{2} - 2 \, A^{2} B^{2} a c + A^{4} c^{2}}{a c^{5}}} - 2 \, A B}{c^{2}}} \log \left (-{\left (B^{4} a^{2} - A^{4} c^{2}\right )} \sqrt{x} -{\left (A a c^{4} \sqrt{-\frac{B^{4} a^{2} - 2 \, A^{2} B^{2} a c + A^{4} c^{2}}{a c^{5}}} - B^{3} a^{2} c + A^{2} B a c^{2}\right )} \sqrt{-\frac{c^{2} \sqrt{-\frac{B^{4} a^{2} - 2 \, A^{2} B^{2} a c + A^{4} c^{2}}{a c^{5}}} - 2 \, A B}{c^{2}}}\right ) + 4 \, B \sqrt{x}}{2 \, c} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-2)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Exception raised: TypeError} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A] time = 1.28881, size = 350, normalized size = 1.32 \begin{align*} \frac{2 \, B \sqrt{x}}{c} - \frac{\sqrt{2}{\left (\left (a c^{3}\right )^{\frac{1}{4}} B a c - \left (a c^{3}\right )^{\frac{3}{4}} A\right )} \arctan \left (-\frac{\sqrt{2}{\left (\sqrt{2} \left (\frac{a}{c}\right )^{\frac{1}{4}} - 2 \, \sqrt{x}\right )}}{2 \, \left (\frac{a}{c}\right )^{\frac{1}{4}}}\right )}{2 \, a c^{3}} + \frac{\sqrt{2}{\left (\left (a c^{3}\right )^{\frac{1}{4}} B a c + \left (a c^{3}\right )^{\frac{3}{4}} A\right )} \log \left (-\sqrt{2} \sqrt{x} \left (\frac{a}{c}\right )^{\frac{1}{4}} + x + \sqrt{\frac{a}{c}}\right )}{4 \, a c^{3}} - \frac{\sqrt{2}{\left (\left (a c^{3}\right )^{\frac{1}{4}} B a c^{3} - \left (a c^{3}\right )^{\frac{3}{4}} A c^{2}\right )} \arctan \left (\frac{\sqrt{2}{\left (\sqrt{2} \left (\frac{a}{c}\right )^{\frac{1}{4}} + 2 \, \sqrt{x}\right )}}{2 \, \left (\frac{a}{c}\right )^{\frac{1}{4}}}\right )}{2 \, a c^{5}} - \frac{\sqrt{2}{\left (\left (a c^{3}\right )^{\frac{1}{4}} B a c^{3} + \left (a c^{3}\right )^{\frac{3}{4}} A c^{2}\right )} \log \left (\sqrt{2} \sqrt{x} \left (\frac{a}{c}\right )^{\frac{1}{4}} + x + \sqrt{\frac{a}{c}}\right )}{4 \, a c^{5}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]